package main

import "fmt"

func main() {
	a, b := playerGen("ace")()
	fmt.Println(a, b)
}

func playerGen(name string) func() (string, int) {
	hp := 50
	return func() (s string, i int) {
		return name, hp
	}
}
